namespace EyeOpen.Io
{
	using System.IO;

	public class FileInfoWrapper : IFileInfo
	{
		private readonly FileInfo fileInfo;

		public FileInfoWrapper(string fileName)
		{
			fileInfo = new FileInfo(fileName);
		}

		public string Name
		{
			get { return fileInfo.Name; }
		}

		public string Extension
		{
			get { return fileInfo.Extension; }
		}

		public string DirectoryName
		{
			get { return fileInfo.DirectoryName; }
		}

		public bool IsReadOnly
		{
			get
			{
				return fileInfo.IsReadOnly;
			}

			set
			{
				fileInfo.IsReadOnly = value;
			}
		}
	}
}